<div id="main-content" role="main">
	#if ($browserSniffer.isIe($request) && $browserSniffer.getMajorVersion($request) < 8)
		<table class="portlet-layout">
		<tr>
			<td class="aui-w21 portlet-column portlet-column-first" id="column-1">
				#set($end = $theme.getSetting('menuCount'))
				#if(!$end)
					#set($end = 1) 
				#end
				#set($Integer = 0)
				#set($end = $Integer.parseInt($end))
				#foreach($i in [1..$end])
				<div class="portlet-column-content">
					$processor.processPortlet("56_INSTANCE_LEFTMENU_$i", "trang-chu")
				</div>
				#end
				$processor.processColumn("column-1", "portlet-column-content portlet-column-content-first")
			</td>
			<td class="aui-w54 portlet-column" id="column-2">
				$processor.processPortlet("101_INSTANCE_detail")
				$processor.processColumn("column-2", "portlet-column-content")
			</td>
			<td class="aui-w25 portlet-column portlet-column-last" id="column-3">
				<div class="portlet-column-content">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#search-piglet" data-toggle="tab">Tìm kiếm</a></li>
						<li><a href="#login-piglet" data-toggle="tab">Quản trị</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="search-piglet">
							$processor.processPortlet("3_INSTANCE_RIGHTMENU", "trang-chu", "_3_groupId=$themeDisplay.getScopeGroupId()")
						</div>
						<div class="tab-pane" id="login-piglet">
							$processor.processPortlet("58_INSTANCE_RIGHTMENU", "trang-chu")
						</div>
					</div>
				</div>
				$processor.processPortlet("101_INSTANCE_NEWPOSTS", "trang-chu")
				$processor.processPortlet("101_INSTANCE_DOCS", "trang-chu")
				$processor.processColumn("column-3", "portlet-column-content portlet-column-content-last")
			</td>
		</tr>
		</table>
	#else
		<div class="portlet-layout">
			<div class="aui-w21 portlet-column portlet-column-first piglets-1" id="column-1">
				#set($end = $theme.getSetting('menuCount'))
				#if(!$end)
					#set($end = 1) 
				#end
				#set($Integer = 0)
				#set($end = $Integer.parseInt($end))
				#foreach($i in [1..$end])
				<div class="portlet-column-content">
					$processor.processPortlet("56_INSTANCE_LEFTMENU_$i", "trang-chu")
				</div>
				#end
				$processor.processColumn("column-1", "portlet-column-content portlet-column-content-first")
			</div>

			<div class="aui-w54 portlet-column piglets-2" id="column-2">
				$processor.processPortlet("101_INSTANCE_detail")
				$processor.processColumn("column-2", "portlet-column-content")
			</div>

			<div class="aui-w25 portlet-column portlet-column-last piglets-1" id="column-3">
				<div class="portlet-column-content">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#search-piglet" data-toggle="tab">Tìm kiếm</a></li>
						<li><a href="#login-piglet" data-toggle="tab">Quản trị</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="search-piglet">
							$processor.processPortlet("3_INSTANCE_RIGHTMENU", "trang-chu", "_3_groupId=$themeDisplay.getScopeGroupId()")
						</div>
						<div class="tab-pane" id="login-piglet">
							$processor.processPortlet("58_INSTANCE_RIGHTMENU", "trang-chu")
						</div>
					</div>
				</div>
				$processor.processPortlet("101_INSTANCE_NEWPOSTS", "trang-chu")
				$processor.processPortlet("101_INSTANCE_DOCS", "trang-chu")
				$processor.processColumn("column-3", "portlet-column-content portlet-column-content-last")
			</div>
		</div>
	#end
</div>